package com.xxgc.mybatis.dao;

import com.xxgc.mybatis.po.User;
import com.xxgc.mybatis.po.extend.UserExtend;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

//用户表Dao层接口
public interface UserDao {
    //注册用户
   int registerUser(User user);
   //登录方法
    User loginUser(@Param("uName") String uName, @Param("uPassword") String uPassword);

    //检查
    User chickUser(@Param("uName") String uName);

    //添加登录信息
    int addLoginInfo(@Param("uId") Integer uId );

    List<UserExtend> selectAllLoginInfo();

    List<UserExtend> chickUserTime(@Param("start") String start,@Param("end") String end);
}
